package com.cos.edoc.dao;

import com.cos.edoc.entity.EdocEntry;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: COS
 * @time: 2022/3/14 14:35
 * @description:
 */
public interface EdocEntryMapper {
    List<EdocEntry> getAllBook();

    List<EdocEntry> getBooksBycategoryId(@Param("categoryId") Integer categoryId);

    int del(@Param("id") Integer id);

    int add(EdocEntry entry);

    EdocEntry getBookById(@Param("id") Integer id);

    int update(EdocEntry entry);
}
